const cart=require("../database/cart")

module.exports=async (req,res)=>{
  const {proID}=req.body
  await cart.deleteOne({proID})
  const data=await cart.find({})
  res.send(data)
}